﻿<Window x:Class="Skynet.Shell.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        xmlns:RegionNames="clr-namespace:Infrastructure.WpfClient.Constants;assembly=Infrastructure.WpfClient"
        xmlns:cal="http://www.codeplex.com/CompositeWPF"    
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:globalres="clr-namespace:Skynet.Shell.Properties"
        xmlns:LateralRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.LateralRegion;assembly=Infrastructure.WpfClient"
        xmlns:TabRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.TabRegion;assembly=Infrastructure.WpfClient"
        xmlns:SingleActiveRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.SingleActiveRegion;assembly=Infrastructure.WpfClient"
        xmlns:ModalDialogRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.ModalDialog;assembly=Infrastructure.WpfClient"
        xmlns:ModalWindowRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.ModalWindow;assembly=Infrastructure.WpfClient"
        xmlns:infControls ="clr-namespace:Infrastructure.WpfClient.Controls;assembly=Infrastructure.WpfClient"
        
        HorizontalContentAlignment="Stretch" 
        VerticalContentAlignment="Stretch"       
        WindowStartupLocation="CenterScreen"         
        WindowState="Maximized"        
        ScrollViewer.HorizontalScrollBarVisibility="Auto" 
        ScrollViewer.VerticalScrollBarVisibility="Auto" 
        Title="Skynet"
        Loaded="Window_Loaded"
        Background="{StaticResource DefaultBackgroundBrush}"
        MinHeight="{StaticResource DefaultWindowsHeight}"
        MinWidth="{StaticResource DefaultWindowsWidth}">
    <!--xmlns:inf3viewer="clr-namespace:_3DTools;assembly=3DTools"-->
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo Description="Skynet shell" 
                         ProgressState="Normal"
                         ProgressValue="50">
            <TaskbarItemInfo.ThumbButtonInfos>
                <ThumbButtonInfo Description="Book the itinerary now" />
            </TaskbarItemInfo.ThumbButtonInfos>
        </TaskbarItemInfo>
    </Window.TaskbarItemInfo>
    <Grid>        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>            
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ModalDialogRegion:DummyModalDialogContent cal:RegionManager.RegionName="ModalDialogWorkspace">            
            
        </ModalDialogRegion:DummyModalDialogContent>        
        <ModalWindowRegion:DummyModalWindowContent cal:RegionManager.RegionName="ModalWindowWorkspace">
            
        </ModalWindowRegion:DummyModalWindowContent>
        <Menu  Grid.Row="0" Grid.ColumnSpan="3" IsMainMenu="True" >
            <MenuItem Header="_File" Style="{StaticResource ResourceKey=MenuItemStyle}" Name="MenuTitle" >
                <MenuItem  Name="miLogin" Header="_Login"  Style="{StaticResource ResourceKey=MenuItemStyle}" Click="MenuItem_Click"></MenuItem>
                <Separator>
                    <Separator.Template>
                        <ControlTemplate>
                            <Border CornerRadius="2" Padding="5" Background="PaleGoldenrod" BorderBrush="Black" BorderThickness="1">
                                <TextBlock FontWeight="Bold">
                                    Application Commands
                                </TextBlock>
                            </Border>
                        </ControlTemplate>
                    </Separator.Template>
                </Separator>
                <MenuItem  Name="btnLogOut" Header="Log out" Style="{StaticResource ResourceKey=MenuItemStyle}" Click="btnLogOut_Click"></MenuItem>
                <MenuItem Header="Close" Style="{StaticResource ResourceKey=MenuItemStyle}"></MenuItem>
            </MenuItem>
            <MenuItem Header="Usuarios">
                <MenuItem Header="Mgm Usuarios" Name="mgmUsuarios" Click="mgmUsuarios_Click">                    
                </MenuItem>                
            </MenuItem>
            <MenuItem Header="Examenes">
                <MenuItem Header="Mgm Categorias Examen" Name="mgmCategoriasExamen" Click="mgmCategoriasExamen_Click">

                </MenuItem>
                <MenuItem Header="Mgm Examenes" Name="mgmExamenes" Click="mgmExamenes_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="Authors">
                <MenuItem Header="Performance" Click="C2SPerformance"></MenuItem>
                <MenuItem Header="Authors" Click="Authors_Click"></MenuItem>
                <MenuItem Header="Authors Data set" Name="btnAuthorsDS" Click="btnAuthorsDS_Click"></MenuItem>
                <MenuItem Header="AddAuthor" Name="btnAddAuthor" Click="btnAddAuthor_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="Publishers">
                <MenuItem Header="Create Publisher" Name="btnCreatePublisher" Click="btnCreatePublisher_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="Books">
                
                <MenuItem Header="Create Book" Name="btnCreateBook" Click="btnCreateBook_Click">                    
                </MenuItem>
                <MenuItem Header="Read Book" Name="btnReadBook" Click="btnReadBook_Click">
                </MenuItem>
                <MenuItem Header="Write Book" Name="btnWriteBook" Click="btnWriteBook_Click">
                </MenuItem>
                <MenuItem Header="Print Book" Name="btnPrintBook" Click="btnPrintBook_Click">
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Aspect">
                <MenuItem Header="Objects in datacontext" Name="btnobjcontext" Click="btnobjcontext_Click"></MenuItem>
                <MenuItem Header="Performance"   Click="T3Performance"></MenuItem>
            </MenuItem>
            <MenuItem Header="NTModule">
                <MenuItem Header="AddAuthor" Name="NTAddAuthor" Click="NTAddAuthor_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="_WPF4">
                <MenuItem Header="MultiTouch" Name="btnmultiTouch" Click="btnmultiTouch_Click">                    
                </MenuItem>
                <MenuItem Header="NewControls" Name="btnnewControls" Click="btnnewControls_Click">
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Unmanagment">
                <MenuItem Name="btnUnmanagment" Header="unmanagment" Click="btnUnmanagment_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="Workspaces">
                <MenuItem Name="btnSingle" Header="Single" Click="btnSingle_Click"></MenuItem>
                <MenuItem Name="btnTab" Header="tab" Click="btnTab_Click"></MenuItem>
                <MenuItem Name="btnFrame" Header="frame" Click="btnFrame_Click"></MenuItem>
                <MenuItem Name="btnFrame2" Header="frame2" Click="btnFrame2_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="Azure">
                <MenuItem Name="btnAzureMgm" Header="Azure Mgm" Click="btnAzureMgm_Click"></MenuItem> 
            </MenuItem>
            <MenuItem Header="Documents">
                <MenuItem Name="btnFlowReader" Header="Flow document reader" Click="btnFlowReader_Click"></MenuItem>
            </MenuItem>
        </Menu>

        <Grid Grid.Row="1" Grid.ColumnSpan="3"  Margin="10,10,10,10"  >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ToggleButton Content="Journal" Name="cbNavigation" Foreground="White">                
            </ToggleButton>            
            <Popup  IsOpen="{Binding ElementName=cbNavigation,Path=IsChecked}"
                    PlacementTarget="{Binding ElementName=cbNavigation}"
                    AllowsTransparency="True"
                    StaysOpen="False"
                    PopupAnimation="Fade" Height="400" Width="300">
                <GroupBox Header="Journal">
                    <StackPanel Orientation="Vertical" Margin="10,10,10,10">
                        <TextBlock>add client</TextBlock>
                        <TextBlock>test client</TextBlock>
                    </StackPanel>                    
                </GroupBox>
            </Popup>
            <ToggleButton Content="Navigation" Name="cbJournal" Foreground="White" Grid.Column="1">
            </ToggleButton>
            <Popup  IsOpen="{Binding ElementName=cbJournal,Path=IsChecked}"
                    PlacementTarget="{Binding ElementName=cbJournal}"
                    AllowsTransparency="True"
                    StaysOpen="False"
                    PopupAnimation="Fade" Height="400" Width="300">
                <GroupBox Header="Navigation">
                    <StackPanel Orientation="Vertical" Margin="10,10,10,10">
                        <Button >www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                    </StackPanel>
                </GroupBox>
            </Popup>

            <ToolBarTray Grid.Column="2"  Background="{StaticResource DefaultBackgroundBrush}">
                <ToolBar>
                    <Button Style="{StaticResource ButtonAction}">Uno</Button>
                    <Button Style="{StaticResource ButtonAction}">Uno</Button>
                    <Button Style="{StaticResource ButtonAction}">Uno</Button>
                    <Button Style="{StaticResource ButtonAction}">Uno</Button>
                    <Button>Uno</Button>
                    <Slider Minimum="0" Name="slheight" Height="20" Width="100"
        Maximum="300"
        IsSnapToTickEnabled="True"
        TickFrequency="2"></Slider>
                    <Slider Minimum="0" Name="slwidth" Height="20" Width="100"
        Maximum="300"
        IsSnapToTickEnabled="True"
        TickFrequency="2"></Slider>

                </ToolBar>
            </ToolBarTray>
            
            <StackPanel Orientation="Horizontal" Grid.Column="3">
                <TextBox Width="100"  ></TextBox>
                <Button Width="100" >Search</Button>
            </StackPanel>
        </Grid>

        <LateralRegion:LateralRegionControl ExpandDirection="Right" Grid.Row="2"   Grid.Column="0" Header="Tool Area"  cal:RegionManager.RegionName="ToolWorkspace"  >

        </LateralRegion:LateralRegionControl>
        <SingleActiveRegion:SingleActiveControl cal:RegionManager.RegionName="BodySingleWorkspace" 
                        Name="BodySingleWorkspace"
                        VerticalAlignment="Top" HorizontalAlignment="Left"
                        VerticalContentAlignment="Top" HorizontalContentAlignment="Left"
                        Grid.Row="2"  Grid.Column="1" Margin="5,5,5,5" Visibility="Collapsed"
                        Style="{StaticResource SingleActiveWorkspaceStyle}"                                                
                        IsVisibleChanged="BodySingleWorkspace_IsVisibleChanged">
        </SingleActiveRegion:SingleActiveControl>
        
        <Frame Grid.Row="2"  Grid.Column="1" Margin="5,5,5,5" Visibility="Collapsed" Name="frameWorkspace"  
               IsVisibleChanged="frameWorkspace_IsVisibleChanged" 
               NavigationUIVisibility="Visible"
                Style="{StaticResource FrameWorkspaceStyle}"       
               cal:RegionManager.RegionName="{x:Static RegionNames:RegionNames.FrameWorkspace}"               
               cal:RegionManager.RegionContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=NavigationService}">
        </Frame>
        <!--<infControls:InfMediaControl Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="300" Width="300">
            
        </infControls:InfMediaControl>-->
        <!--<infControls:InfMediaControl3D Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="800" Width="800" >

        </infControls:InfMediaControl3D>-->
        <infControls:TextBlockSpeech Text="Welcome, Skynet System" Grid.Column="1" Grid.Row="2"  Width="200" Height="40">
            
        </infControls:TextBlockSpeech>
      
        <TabRegion:AnimatedTabControl Grid.Row="2"  
                    Grid.Column="1" Margin="1,1,1,1"  
                    Name="TabWorkspace"                    
                    Visibility="Collapsed"                     
                    cal:RegionManager.RegionName="TabWorkspace"      
                     Style="{StaticResource TabWorkspaceStyle}"
                    ItemContainerStyle="{StaticResource TabWorkSpaceItemStyle}"
                    IsVisibleChanged="TabWorkspace_IsVisibleChanged">
        </TabRegion:AnimatedTabControl>        
        
        <LateralRegion:LateralRegionControl ExpandDirection="Left" Grid.Row="2"  Grid.RowSpan="2" Grid.Column="2" Header="Rearch Area"  cal:RegionManager.RegionName="ResearchWorkspace" >
            
        </LateralRegion:LateralRegionControl>

        <Expander Grid.Row="3"  Grid.Column="0" Grid.ColumnSpan="2" ExpandDirection="Up" Header="Status">
            <Button>Click</Button>
        </Expander>
        
        <StatusBar   Grid.ColumnSpan="3"  Grid.Row="4">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <TextBlock>Left Side</TextBlock>
            <StatusBarItem Grid.Column="1">
                
                <TextBlock >Right Side</TextBlock>
                
                
            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>
